package com.wlz.config;

import com.wlz.bean.A;
import com.wlz.bean.MyBeanBeanInitDestroy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wlz
 * @date 2022-05-23  9:01 下午
 */

@Configuration
public class AppConfig4 {

	@Bean(initMethod = "init",destroyMethod = "destroy")
	public MyBeanBeanInitDestroy myBeanBeanInitDestroy() {
		return new MyBeanBeanInitDestroy();
	}

}
